<template>
  <!--    产品说明-->
  <div class="box">
    <div class="boxCenter">
      <ul>
        <li>产品名称：{{ productName }}</li>
        <li>产品说明：{{ productBrief }}</li>
      </ul>
    </div>
  </div>
</template>

<script>
import { getOrderOne } from "../../../src/assets/js/api";
export default {
  name: "ProductDescription",
  created() {
    //获取产品Id
    let prductId = sessionStorage.getItem("prductId");
    // let orderNumber = sessionStorage.getItem("orderNumber");
    this.getOrderOne(prductId);
    // this.findProductUrl(orderNumber);
  },
  data() {
    return {
      productName: "",
      productBrief: " "
    };
  },
  methods: {
    getOrderOne(id) {
      getOrderOne(id).then(res => {
        this.productName = res.data.productName;
        this.productBrief = res.data.productBrief;
      });
    },
  }
};
</script>

<style scoped type="less">
ul {
  text-align: left;
  font-size: 14px;
  padding-left: 10px;
}
</style>
